NPROC_PER_NODE=16
NNODES=1
RANK=0
MASTER_ADDR=127.0.0.1
MASTER_PORT=29500

python3 -m torch.distributed.run --nproc_per_node $NPROC_PER_NODE --nnodes $NNODES --node_rank $RANK --master_addr $MASTER_ADDR --master_port $MASTER_PORT \
    src/train.py \
    --model_name_or_path /data1/mzn/model/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B \
    --stage sft \
    --do_train \
    --dataset alpaca_zh_demo \
    --template qwen \
    --finetuning_type lora \
    --lora_target q_proj,v_proj \
    --output_dir outputs/qwen-lora \
    --per_device_train_batch_size 2 \
    --gradient_accumulation_steps 4 \
    --lr_scheduler_type cosine \
    --logging_steps 1 \
    --save_steps 100 \
    --learning_rate 5e-5 \
    --num_train_epochs 3 \
    --fp16